package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.MacroTacheBiblioDao;
import com.aerotechnic.dao.interfaces.MacroTacheBiblioDaoIn;
import com.aerotechnic.entities.JalonBiblio;
import com.aerotechnic.entities.MacroTache;
import com.aerotechnic.entities.MacroTacheBiblio;
import com.aerotechnic.service.interfaces.MacroTacheBiblioBoIn;

@Service("MacroTacheBiblioBo")
@Transactional
public class MacroTacheBiblioBo implements MacroTacheBiblioBoIn {

	@Autowired
	private MacroTacheBiblioDaoIn macroTacheBiblioDao;

	@Override
	public void save(MacroTacheBiblio myEntity) {
		// TODO Auto-generated method stub
		macroTacheBiblioDao.save(myEntity);
		
	}

	@Override
	public void update(MacroTacheBiblio myEntity) {
		// TODO Auto-generated method stub
		macroTacheBiblioDao.update(myEntity);
		
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		macroTacheBiblioDao.delete(id);
	}

	@Override
	public MacroTacheBiblio findByID(Long id) {
		// TODO Auto-generated method stub
		return macroTacheBiblioDao.findByID(id);
	}

	@Override
	public List<MacroTacheBiblio> findAll() {
		// TODO Auto-generated method stub
		
		return macroTacheBiblioDao.findAll();
	}
	
	@Override
	public int countAllTache() {
		// TODO Auto-generated method stub
		return macroTacheBiblioDao.countAllTache();
	}

	@Override
	public List<MacroTacheBiblio> find(int startIndex, int pageSize) {
		// TODO Auto-generated method stub
		return macroTacheBiblioDao.find(startIndex, pageSize);
	}

	@Override
	public MacroTacheBiblio findbyIntitule(String intitule) {
		// TODO Auto-generated method stub
		return macroTacheBiblioDao.findbyIntitule(intitule);
	}


	@Override
	public List<MacroTacheBiblio> getMacoTachesBibByIds(String[] ids) {
		// TODO Auto-generated method stub
		return macroTacheBiblioDao.getMacoTachesBibByIds(ids);
	}

	@Override
	public List<MacroTacheBiblio> getMacHoldingDRF() {
		// TODO Auto-generated method stub
		return macroTacheBiblioDao.getMacHoldingDRF();
	}


}
